let appDate = require('../../mock.json')
let seller = appDate.seller
let goods = appDate.goods
let ratings = appDate.ratings
let Mock = require('mockjs')

module.exports = {
  // 是否开启数据mock
  enable: true,
  // 配置mock请求的相关数据
  mockData: [
    {
      url: '/api/seller',
      method: 'get',
      code: 0,
      data: Mock.mock(goods)
    },
    {
      url: '/api/goods',
      method: 'post',
      code: -1,
      data: Mock.mock(seller)
    },
    {
      url: '/api/ratings',
      method: 'get',
      code: 0,
      data: Mock.mock(ratings)
    }
  ]
}
